package CommandesAlpha;
import editeur.EditeurAlpha;
import Commande.Commande;
import IHM.IHM_addon_Alpha;


public class save_macro_set implements Commande {


	private EditeurAlpha edit;
	private IHM_addon_Alpha ihm;

public save_macro_set(EditeurAlpha ed,IHM_addon_Alpha i){
	edit=ed;
	ihm=i;
}
public void execute( )
{	
		ihm.debog("Commandes.save_macro_set");
		String file = ihm.setMacroSetName();
		if (file == null){
			file=ihm.setMacroSetName();
		}
		else {
			if(edit.saveMacroSet(file)){
				ihm.set_macroset_saved(true);
			}
		}
}
public String toString(){
	return "save_macro_set";
}

}
